package com.xjy.dao;

import com.xjy.pojo.Admin;
import com.xjy.pojo.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface adminMapper {

    List<Admin> getAdmins();

    int deleteAdmin(int aid);

    int updateAdmin(Admin admin);

    int addAdmin(Admin admin);

    Admin getAdminByName(@Param("adminname") String name);

    Admin getAdminById(@Param("aid") int aid);


    int addMessage(Message message);

    List<Message> getNotices();

    int deleteNotice(String mid);

    int updateNotice(@Param("mid") String mid, @Param("msg") String msg);
}
